import request from '@/utils/request';
/** 获取联想建议（自动补全） */
export const getSuggestionAPI = (q: string) => {
  return request({
    url: '/v1_0/suggestion',
    params: { q },
  });
};

/** 获取搜索结果 */
export const getResultAPI = ({ page = 1, per_page = 10, q = '' }) => {
  return request({
    url: '/v1_0/search',
    params: { page, per_page, q },
  });
};
